Optimal. Leaf size=154 \[ -\frac {3 b \left (4 (a+b)^2+(2 a+b)^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{8 a^{7/2} (a+b)^{5/2} d}+\frac {\sinh (c+d x)}{a^3 d}-\frac {b^3 \sinh (c+d x)}{4 a^3 (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}+\frac {3 b^2 (4 a+3 b) \sinh (c+d x)}{8 a^3 (a+b)^2 d \left (a+b+a \sinh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 154, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {4232, 398,
1171, 393, 211} \begin {gather*} -\frac {3 b \left (4 (a+b)^2+(2 a+b)^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{8 a^{7/2} d (a+b)^{5/2}}-\frac {b^3 \sinh (c+d x)}{4 a^3 d (a+b) \left (a \sinh ^2(c+d x)+a+b\right )^2}+\frac {3 b^2 (4 a+3 b) \sinh (c+d x)}{8 a^3 d (a+b)^2 \left (a \sinh ^2(c+d x)+a+b\right )}+\frac {\sinh (c+d x)}{a^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 393
Rule 398
Rule 1171
Rule 4232
Rubi steps
\begin {align*} \int \frac {\cosh (c+d x)}{\left (a+b \text {sech}^2(c+d x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (1+x^2\right )^3}{\left (a+b+a x^2\right )^3} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (\frac {1}{a^3}-\frac {b \left (3 a^2+3 a b+b^2\right )+3 a b (2 a+b) x^2+3 a^2 b x^4}{a^3 \left (a+b+a x^2\right )^3}\right ) \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {\sinh (c+d x)}{a^3 d}-\frac {\text {Subst}\left (\int \frac {b \left (3 a^2+3 a b+b^2\right )+3 a b (2 a+b) x^2+3 a^2 b x^4}{\left (a+b+a x^2\right )^3} \, dx,x,\sinh (c+d x)\right )}{a^3 d}\\ &=\frac {\sinh (c+d x)}{a^3 d}-\frac {b^3 \sinh (c+d x)}{4 a^3 (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}+\frac {\text {Subst}\left (\int \frac {-3 b (2 a+b)^2-12 a b (a+b) x^2}{\left (a+b+a x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{4 a^3 (a+b) d}\\ &=\frac {\sinh (c+d x)}{a^3 d}-\frac {b^3 \sinh (c+d x)}{4 a^3 (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}+\frac {3 b^2 (4 a+3 b) \sinh (c+d x)}{8 a^3 (a+b)^2 d \left (a+b+a \sinh ^2(c+d x)\right )}-\frac {\left (3 b \left (4 (a+b)^2+(2 a+b)^2\right )\right ) \text {Subst}\left (\int \frac {1}{a+b+a x^2} \, dx,x,\sinh (c+d x)\right )}{8 a^3 (a+b)^2 d}\\ &=-\frac {3 b \left (4 (a+b)^2+(2 a+b)^2\right ) \tan ^{-1}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{8 a^{7/2} (a+b)^{5/2} d}+\frac {\sinh (c+d x)}{a^3 d}-\frac {b^3 \sinh (c+d x)}{4 a^3 (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}+\frac {3 b^2 (4 a+3 b) \sinh (c+d x)}{8 a^3 (a+b)^2 d \left (a+b+a \sinh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.46, size = 292, normalized size = 1.90 \begin {gather*} \frac {(a+2 b+a \cosh (2 (c+d x))) \text {sech}^5(c+d x) \left (\frac {3 b \left (8 a^2+12 a b+5 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a+b} \text {csch}(c+d x) \sqrt {(\cosh (c)-\sinh (c))^2} (\cosh (c)+\sinh (c))}{\sqrt {a}}\right ) (a+2 b+a \cosh (2 (c+d x)))^2 \text {sech}(c+d x) (\cosh (c)-\sinh (c))}{(a+b)^{5/2} \sqrt {(\cosh (c)-\sinh (c))^2}}+8 \sqrt {a} \cosh (d x) (a+2 b+a \cosh (2 (c+d x)))^2 \text {sech}(c+d x) \sinh (c)+8 \sqrt {a} \cosh (c) (a+2 b+a \cosh (2 (c+d x)))^2 \text {sech}(c+d x) \sinh (d x)-\frac {8 \sqrt {a} b^3 \tanh (c+d x)}{a+b}+\frac {6 \sqrt {a} b^2 (4 a+3 b) (a+2 b+a \cosh (2 (c+d x))) \tanh (c+d x)}{(a+b)^2}\right )}{64 a^{7/2} d \left (a+b \text {sech}^2(c+d x)\right )^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(334\) vs.
\(2(140)=280\).
time = 3.30, size = 335, normalized size = 2.18
method | result | size |
derivativedivides | \(\frac {-\frac {1}{a^{3} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}-\frac {2 b \left (\frac {\frac {b \left (12 a +7 b \right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a +8 b}+\frac {3 b \left (4 a^{2}-7 a b -7 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )^{2}}-\frac {3 b \left (4 a^{2}-7 a b -7 b^{2}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )^{2}}-\frac {b \left (12 a +7 b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 \left (a +b \right )}}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b \right )^{2}}+\frac {3 \left (8 a^{2}+12 a b +5 b^{2}\right ) \left (\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}+\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}\right )}{8 \left (a^{2}+2 a b +b^{2}\right )}\right )}{a^{3}}-\frac {1}{a^{3} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}}{d}\) | \(335\) |
default | \(\frac {-\frac {1}{a^{3} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}-\frac {2 b \left (\frac {\frac {b \left (12 a +7 b \right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a +8 b}+\frac {3 b \left (4 a^{2}-7 a b -7 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )^{2}}-\frac {3 b \left (4 a^{2}-7 a b -7 b^{2}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )^{2}}-\frac {b \left (12 a +7 b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 \left (a +b \right )}}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b \right )^{2}}+\frac {3 \left (8 a^{2}+12 a b +5 b^{2}\right ) \left (\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}+\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}\right )}{8 \left (a^{2}+2 a b +b^{2}\right )}\right )}{a^{3}}-\frac {1}{a^{3} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}}{d}\) | \(335\) |
risch | \(\frac {{\mathrm e}^{d x +c}}{2 a^{3} d}-\frac {{\mathrm e}^{-d x -c}}{2 a^{3} d}+\frac {b^{2} {\mathrm e}^{d x +c} \left (12 a^{2} {\mathrm e}^{6 d x +6 c}+9 a b \,{\mathrm e}^{6 d x +6 c}+12 a^{2} {\mathrm e}^{4 d x +4 c}+49 a b \,{\mathrm e}^{4 d x +4 c}+28 b^{2} {\mathrm e}^{4 d x +4 c}-12 a^{2} {\mathrm e}^{2 d x +2 c}-49 a b \,{\mathrm e}^{2 d x +2 c}-28 b^{2} {\mathrm e}^{2 d x +2 c}-12 a^{2}-9 a b \right )}{4 a^{3} d \left (a +b \right )^{2} \left (a \,{\mathrm e}^{4 d x +4 c}+2 a \,{\mathrm e}^{2 d x +2 c}+4 b \,{\mathrm e}^{2 d x +2 c}+a \right )^{2}}-\frac {3 b \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{2 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{2} d a}-\frac {9 b^{2} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{4 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{2} d \,a^{2}}-\frac {15 b^{3} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{16 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{2} d \,a^{3}}+\frac {3 b \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{2 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{2} d a}+\frac {9 b^{2} \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{4 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{2} d \,a^{2}}+\frac {15 b^{3} \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{16 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{2} d \,a^{3}}\) | \(587\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 5414 vs.
\(2 (140) = 280\).
time = 0.50, size = 9856, normalized size = 64.00 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\mathrm {cosh}\left (c+d\,x\right )}{{\left (a+\frac {b}{{\mathrm {cosh}\left (c+d\,x\right )}^2}\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________